package com.hwd.srb.sms.client;

import com.hwd.srb.sms.client.fallback.CoreUserInfoClientFallback;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 黄伟东/Victor
 * @date 2022/3/19 0:20
 * @Description
 */
@FeignClient(value = "srb-service-core",fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    @ApiOperation("校验手机号是否注册")
    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    boolean checkMobile(@ApiParam(value = "手机号", required = true) @PathVariable String mobile);

}
